package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOdrIdIsNull() {
            addCriterion("odr_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrIdIsNotNull() {
            addCriterion("odr_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrIdEqualTo(Integer value) {
            addCriterion("odr_id =", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotEqualTo(Integer value) {
            addCriterion("odr_id <>", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThan(Integer value) {
            addCriterion("odr_id >", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_id >=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThan(Integer value) {
            addCriterion("odr_id <", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_id <=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdIn(List<Integer> values) {
            addCriterion("odr_id in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotIn(List<Integer> values) {
            addCriterion("odr_id not in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_id between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_id not between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNull() {
            addCriterion("odr_code is null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNotNull() {
            addCriterion("odr_code is not null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeEqualTo(String value) {
            addCriterion("odr_code =", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotEqualTo(String value) {
            addCriterion("odr_code <>", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThan(String value) {
            addCriterion("odr_code >", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThanOrEqualTo(String value) {
            addCriterion("odr_code >=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThan(String value) {
            addCriterion("odr_code <", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThanOrEqualTo(String value) {
            addCriterion("odr_code <=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLike(String value) {
            addCriterion("odr_code like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotLike(String value) {
            addCriterion("odr_code not like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIn(List<String> values) {
            addCriterion("odr_code in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotIn(List<String> values) {
            addCriterion("odr_code not in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeBetween(String value1, String value2) {
            addCriterion("odr_code between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotBetween(String value1, String value2) {
            addCriterion("odr_code not between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNull() {
            addCriterion("odr_type is null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNotNull() {
            addCriterion("odr_type is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeEqualTo(Integer value) {
            addCriterion("odr_type =", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotEqualTo(Integer value) {
            addCriterion("odr_type <>", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThan(Integer value) {
            addCriterion("odr_type >", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_type >=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThan(Integer value) {
            addCriterion("odr_type <", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThanOrEqualTo(Integer value) {
            addCriterion("odr_type <=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIn(List<Integer> values) {
            addCriterion("odr_type in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotIn(List<Integer> values) {
            addCriterion("odr_type not in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeBetween(Integer value1, Integer value2) {
            addCriterion("odr_type between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_type not between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIsNull() {
            addCriterion("odr_red_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIsNotNull() {
            addCriterion("odr_red_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagEqualTo(Integer value) {
            addCriterion("odr_red_flag =", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotEqualTo(Integer value) {
            addCriterion("odr_red_flag <>", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagGreaterThan(Integer value) {
            addCriterion("odr_red_flag >", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_red_flag >=", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagLessThan(Integer value) {
            addCriterion("odr_red_flag <", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_red_flag <=", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIn(List<Integer> values) {
            addCriterion("odr_red_flag in", values, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotIn(List<Integer> values) {
            addCriterion("odr_red_flag not in", values, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_red_flag between", value1, value2, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_red_flag not between", value1, value2, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagIsNull() {
            addCriterion("odr_ity_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagIsNotNull() {
            addCriterion("odr_ity_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagEqualTo(Integer value) {
            addCriterion("odr_ity_flag =", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagNotEqualTo(Integer value) {
            addCriterion("odr_ity_flag <>", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagGreaterThan(Integer value) {
            addCriterion("odr_ity_flag >", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_ity_flag >=", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagLessThan(Integer value) {
            addCriterion("odr_ity_flag <", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_ity_flag <=", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagIn(List<Integer> values) {
            addCriterion("odr_ity_flag in", values, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagNotIn(List<Integer> values) {
            addCriterion("odr_ity_flag not in", values, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_ity_flag between", value1, value2, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_ity_flag not between", value1, value2, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrDateIsNull() {
            addCriterion("odr_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrDateIsNotNull() {
            addCriterion("odr_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrDateEqualTo(Date value) {
            addCriterion("odr_date =", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotEqualTo(Date value) {
            addCriterion("odr_date <>", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateGreaterThan(Date value) {
            addCriterion("odr_date >", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_date >=", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateLessThan(Date value) {
            addCriterion("odr_date <", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_date <=", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateIn(List<Date> values) {
            addCriterion("odr_date in", values, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotIn(List<Date> values) {
            addCriterion("odr_date not in", values, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateBetween(Date value1, Date value2) {
            addCriterion("odr_date between", value1, value2, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_date not between", value1, value2, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIsNull() {
            addCriterion("odr_take_person is null");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIsNotNull() {
            addCriterion("odr_take_person is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonEqualTo(String value) {
            addCriterion("odr_take_person =", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotEqualTo(String value) {
            addCriterion("odr_take_person <>", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonGreaterThan(String value) {
            addCriterion("odr_take_person >", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonGreaterThanOrEqualTo(String value) {
            addCriterion("odr_take_person >=", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLessThan(String value) {
            addCriterion("odr_take_person <", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLessThanOrEqualTo(String value) {
            addCriterion("odr_take_person <=", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLike(String value) {
            addCriterion("odr_take_person like", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotLike(String value) {
            addCriterion("odr_take_person not like", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIn(List<String> values) {
            addCriterion("odr_take_person in", values, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotIn(List<String> values) {
            addCriterion("odr_take_person not in", values, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonBetween(String value1, String value2) {
            addCriterion("odr_take_person between", value1, value2, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotBetween(String value1, String value2) {
            addCriterion("odr_take_person not between", value1, value2, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerIsNull() {
            addCriterion("odr_checker is null");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerIsNotNull() {
            addCriterion("odr_checker is not null");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerEqualTo(String value) {
            addCriterion("odr_checker =", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerNotEqualTo(String value) {
            addCriterion("odr_checker <>", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerGreaterThan(String value) {
            addCriterion("odr_checker >", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerGreaterThanOrEqualTo(String value) {
            addCriterion("odr_checker >=", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerLessThan(String value) {
            addCriterion("odr_checker <", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerLessThanOrEqualTo(String value) {
            addCriterion("odr_checker <=", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerLike(String value) {
            addCriterion("odr_checker like", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerNotLike(String value) {
            addCriterion("odr_checker not like", value, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerIn(List<String> values) {
            addCriterion("odr_checker in", values, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerNotIn(List<String> values) {
            addCriterion("odr_checker not in", values, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerBetween(String value1, String value2) {
            addCriterion("odr_checker between", value1, value2, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrCheckerNotBetween(String value1, String value2) {
            addCriterion("odr_checker not between", value1, value2, "odrChecker");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryIsNull() {
            addCriterion("odr_summary is null");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryIsNotNull() {
            addCriterion("odr_summary is not null");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryEqualTo(String value) {
            addCriterion("odr_summary =", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryNotEqualTo(String value) {
            addCriterion("odr_summary <>", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryGreaterThan(String value) {
            addCriterion("odr_summary >", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryGreaterThanOrEqualTo(String value) {
            addCriterion("odr_summary >=", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryLessThan(String value) {
            addCriterion("odr_summary <", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryLessThanOrEqualTo(String value) {
            addCriterion("odr_summary <=", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryLike(String value) {
            addCriterion("odr_summary like", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryNotLike(String value) {
            addCriterion("odr_summary not like", value, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryIn(List<String> values) {
            addCriterion("odr_summary in", values, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryNotIn(List<String> values) {
            addCriterion("odr_summary not in", values, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryBetween(String value1, String value2) {
            addCriterion("odr_summary between", value1, value2, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrSummaryNotBetween(String value1, String value2) {
            addCriterion("odr_summary not between", value1, value2, "odrSummary");
            return (Criteria) this;
        }

        public Criteria andOdrStatusIsNull() {
            addCriterion("odr_status is null");
            return (Criteria) this;
        }

        public Criteria andOdrStatusIsNotNull() {
            addCriterion("odr_status is not null");
            return (Criteria) this;
        }

        public Criteria andOdrStatusEqualTo(Integer value) {
            addCriterion("odr_status =", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusNotEqualTo(Integer value) {
            addCriterion("odr_status <>", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusGreaterThan(Integer value) {
            addCriterion("odr_status >", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_status >=", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusLessThan(Integer value) {
            addCriterion("odr_status <", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusLessThanOrEqualTo(Integer value) {
            addCriterion("odr_status <=", value, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusIn(List<Integer> values) {
            addCriterion("odr_status in", values, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusNotIn(List<Integer> values) {
            addCriterion("odr_status not in", values, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusBetween(Integer value1, Integer value2) {
            addCriterion("odr_status between", value1, value2, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_status not between", value1, value2, "odrStatus");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIsNull() {
            addCriterion("odr_rep_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIsNotNull() {
            addCriterion("odr_rep_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdEqualTo(Integer value) {
            addCriterion("odr_rep_id =", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotEqualTo(Integer value) {
            addCriterion("odr_rep_id <>", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdGreaterThan(Integer value) {
            addCriterion("odr_rep_id >", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_rep_id >=", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLessThan(Integer value) {
            addCriterion("odr_rep_id <", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_rep_id <=", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIn(List<Integer> values) {
            addCriterion("odr_rep_id in", values, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotIn(List<Integer> values) {
            addCriterion("odr_rep_id not in", values, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_rep_id between", value1, value2, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_rep_id not between", value1, value2, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonIsNull() {
            addCriterion("odr_service_person is null");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonIsNotNull() {
            addCriterion("odr_service_person is not null");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonEqualTo(String value) {
            addCriterion("odr_service_person =", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotEqualTo(String value) {
            addCriterion("odr_service_person <>", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonGreaterThan(String value) {
            addCriterion("odr_service_person >", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonGreaterThanOrEqualTo(String value) {
            addCriterion("odr_service_person >=", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonLessThan(String value) {
            addCriterion("odr_service_person <", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonLessThanOrEqualTo(String value) {
            addCriterion("odr_service_person <=", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonLike(String value) {
            addCriterion("odr_service_person like", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotLike(String value) {
            addCriterion("odr_service_person not like", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonIn(List<String> values) {
            addCriterion("odr_service_person in", values, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotIn(List<String> values) {
            addCriterion("odr_service_person not in", values, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonBetween(String value1, String value2) {
            addCriterion("odr_service_person between", value1, value2, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotBetween(String value1, String value2) {
            addCriterion("odr_service_person not between", value1, value2, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrDeptIsNull() {
            addCriterion("odr_dept is null");
            return (Criteria) this;
        }

        public Criteria andOdrDeptIsNotNull() {
            addCriterion("odr_dept is not null");
            return (Criteria) this;
        }

        public Criteria andOdrDeptEqualTo(String value) {
            addCriterion("odr_dept =", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptNotEqualTo(String value) {
            addCriterion("odr_dept <>", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptGreaterThan(String value) {
            addCriterion("odr_dept >", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptGreaterThanOrEqualTo(String value) {
            addCriterion("odr_dept >=", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptLessThan(String value) {
            addCriterion("odr_dept <", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptLessThanOrEqualTo(String value) {
            addCriterion("odr_dept <=", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptLike(String value) {
            addCriterion("odr_dept like", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptNotLike(String value) {
            addCriterion("odr_dept not like", value, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptIn(List<String> values) {
            addCriterion("odr_dept in", values, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptNotIn(List<String> values) {
            addCriterion("odr_dept not in", values, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptBetween(String value1, String value2) {
            addCriterion("odr_dept between", value1, value2, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrDeptNotBetween(String value1, String value2) {
            addCriterion("odr_dept not between", value1, value2, "odrDept");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateIsNull() {
            addCriterion("odr_red_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateIsNotNull() {
            addCriterion("odr_red_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateEqualTo(Date value) {
            addCriterion("odr_red_date =", value, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateNotEqualTo(Date value) {
            addCriterion("odr_red_date <>", value, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateGreaterThan(Date value) {
            addCriterion("odr_red_date >", value, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_red_date >=", value, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateLessThan(Date value) {
            addCriterion("odr_red_date <", value, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_red_date <=", value, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateIn(List<Date> values) {
            addCriterion("odr_red_date in", values, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateNotIn(List<Date> values) {
            addCriterion("odr_red_date not in", values, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateBetween(Date value1, Date value2) {
            addCriterion("odr_red_date between", value1, value2, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_red_date not between", value1, value2, "odrRedDate");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonIsNull() {
            addCriterion("odr_red_person is null");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonIsNotNull() {
            addCriterion("odr_red_person is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonEqualTo(String value) {
            addCriterion("odr_red_person =", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonNotEqualTo(String value) {
            addCriterion("odr_red_person <>", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonGreaterThan(String value) {
            addCriterion("odr_red_person >", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonGreaterThanOrEqualTo(String value) {
            addCriterion("odr_red_person >=", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonLessThan(String value) {
            addCriterion("odr_red_person <", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonLessThanOrEqualTo(String value) {
            addCriterion("odr_red_person <=", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonLike(String value) {
            addCriterion("odr_red_person like", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonNotLike(String value) {
            addCriterion("odr_red_person not like", value, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonIn(List<String> values) {
            addCriterion("odr_red_person in", values, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonNotIn(List<String> values) {
            addCriterion("odr_red_person not in", values, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonBetween(String value1, String value2) {
            addCriterion("odr_red_person between", value1, value2, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrRedPersonNotBetween(String value1, String value2) {
            addCriterion("odr_red_person not between", value1, value2, "odrRedPerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNull() {
            addCriterion("odr_make_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNotNull() {
            addCriterion("odr_make_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateEqualTo(Date value) {
            addCriterion("odr_make_date =", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotEqualTo(Date value) {
            addCriterion("odr_make_date <>", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThan(Date value) {
            addCriterion("odr_make_date >", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_make_date >=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThan(Date value) {
            addCriterion("odr_make_date <", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_make_date <=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIn(List<Date> values) {
            addCriterion("odr_make_date in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotIn(List<Date> values) {
            addCriterion("odr_make_date not in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateBetween(Date value1, Date value2) {
            addCriterion("odr_make_date between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_make_date not between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeIsNull() {
            addCriterion("odr_out_type is null");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeIsNotNull() {
            addCriterion("odr_out_type is not null");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeEqualTo(Integer value) {
            addCriterion("odr_out_type =", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeNotEqualTo(Integer value) {
            addCriterion("odr_out_type <>", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeGreaterThan(Integer value) {
            addCriterion("odr_out_type >", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_out_type >=", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeLessThan(Integer value) {
            addCriterion("odr_out_type <", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeLessThanOrEqualTo(Integer value) {
            addCriterion("odr_out_type <=", value, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeIn(List<Integer> values) {
            addCriterion("odr_out_type in", values, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeNotIn(List<Integer> values) {
            addCriterion("odr_out_type not in", values, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_type between", value1, value2, "odrOutType");
            return (Criteria) this;
        }

        public Criteria andOdrOutTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_out_type not between", value1, value2, "odrOutType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}